package com.ldxiwxr.controller.controller;

import com.ldxiwxr.system.service.IRoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 权限控制器
 * @author SuBanxia
 */
@RestController
@Api(tags = "/RoleController")
@RequestMapping("/role")
public class RoleController {
    @Resource
    private IRoleService roleService;

    @ApiOperation("获取用户具体可访问页面")
    @GetMapping("/getAccessPath")
    public List<String> getAccessPath(){
        return roleService.getAccessPath();
    }
}
